<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for utils/helpers.js</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="../prettify.css" />
    <link rel="stylesheet" href="../base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(../sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="../index.html">All files</a> / <a href="index.html">utils</a> helpers.js
    </h1>
    <div class='clearfix'>
      <div class='fl pad1y space-right2'>
        <span class="strong">24.74% </span>
        <span class="quiet">Statements</span>
        <span class='fraction'>24/97</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">3.23% </span>
        <span class="quiet">Branches</span>
        <span class='fraction'>3/93</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">11.11% </span>
        <span class="quiet">Functions</span>
        <span class='fraction'>2/18</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">30% </span>
        <span class="quiet">Lines</span>
        <span class='fraction'>24/80</span>
      </div>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">4x</span>
<span class="cline-any cline-yes">48x</span>
<span class="cline-any cline-yes">48x</span>
<span class="cline-any cline-yes">48x</span>
<span class="cline-any cline-yes">48x</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import defaults from './defaults';
import { isArray } from './typeCheckers';
&nbsp;
// Calendar data
export const daysInMonths = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
export const today = new Date();
export const todayComps = {
  year: today.getFullYear(),
  month: today.getMonth() + 1,
  day: today.getDate(),
};
&nbsp;
// Days/month/year components for a given month and year
export const getMonthComps = (month, year) =&gt; {
  const <span class="cstat-no" title="statement not covered" >firstDayOfWeek = </span>defaults.firstDayOfWeek;
  const <span class="cstat-no" title="statement not covered" >inLeapYear = (y</span>ear % 4 === 0 &amp;&amp; year % 100 !== 0) || year % 400 === 0;
  const <span class="cstat-no" title="statement not covered" >firstWeekday = </span>new Date(year, month - 1, 1).getDay() + 1;
  const <span class="cstat-no" title="statement not covered" >days = (m</span>onth === 2 &amp;&amp; inLeapYear) ? 29 : daysInMonths[month - 1];
  const <span class="cstat-no" title="statement not covered" >weeks = Math.ceil((d</span>ays + Math.abs(firstWeekday - firstDayOfWeek)) / 7);
  return {
    firstDayOfWeek,
    inLeapYear,
    firstWeekday,
    days,
    weeks,
    month,
    year,
  };
};
&nbsp;
// Days/month/year components for a given date
export const getDateComps = (date) =&gt; {
<span class="cstat-no" title="statement not covered" >  if (<span class="cstat-no" title="statement not covered" >!</span></span>date || !date.getTime) return undefined;
<span class="cstat-no" title="statement not covered" >  return getMonthComps(date.getMonth() + 1, date.getFullYear());</span>
};
&nbsp;
// Days/month/year components for today's month
export const getThisMonthComps = () =&gt; getMonthComps(todayComps.month, todayComps.year);
&nbsp;
// Day/month/year components for previous month
export const getPrevMonthComps = (month, year) =&gt; {
<span class="cstat-no" title="statement not covered" >  if (month === 1) <span class="cstat-no" title="statement not covered" >r</span>eturn </span>getMonthComps(12, year - 1);
<span class="cstat-no" title="statement not covered" >  return getMonthComps(month - 1, year);</span>
};
&nbsp;
// Day/month/year components for next month
export const getNextMonthComps = (month, year) =&gt; {
<span class="cstat-no" title="statement not covered" >  if (month === 12) <span class="cstat-no" title="statement not covered" >r</span>eturn </span>getMonthComps(1, year + 1);
<span class="cstat-no" title="statement not covered" >  return getMonthComps(month + 1, year);</span>
};
&nbsp;
export const <span class="fstat-no" title="function not covered" >getExampleMonthComps = </span>() =&gt; {
  const <span class="cstat-no" title="statement not covered" >thisMonthComps = </span>getThisMonthComps();
  const <span class="cstat-no" title="statement not covered" >nextMonthComps = g</span>etNextMonthComps(thisMonthComps.month, thisMonthComps.year);
&nbsp;
  return {
    thisMonth: thisMonthComps.month - 1,
    thisMonthYear: thisMonthComps.year,
    nextMonth: nextMonthComps.month - 1,
    nextMonthYear: nextMonthComps.year,
  };
};
&nbsp;
function comparePages(firstPage, secondPage) {
<span class="cstat-no" title="statement not covered" >  if (<span class="cstat-no" title="statement not covered" >!</span></span>firstPage || !secondPage) return 0;
<span class="cstat-no" title="statement not covered" >  if (firstPage.year === secondPage.year) {</span>
<span class="cstat-no" title="statement not covered" >    if (firstPage.month === secondPage.month) <span class="cstat-no" title="statement not covered" >r</span>eturn </span>0;
<span class="cstat-no" title="statement not covered" >    return f</span>irstPage.month &lt; secondPage.month ? -1 : 1;
  }
<span class="cstat-no" title="statement not covered" >  return f</span>irstPage.year &lt; secondPage.year ? -1 : 1;
}
&nbsp;
export const <span class="fstat-no" title="function not covered" >pageIsEqualToPage = </span>(page, otherPage) =&gt; comparePages(page, otherPage) === 0;
&nbsp;
export const <span class="fstat-no" title="function not covered" >pageIsBeforePage = </span>(page, beforePage) =&gt; comparePages(page, beforePage) === -1;
&nbsp;
export const <span class="fstat-no" title="function not covered" >pageIsAfterPage = </span>(page, afterPage) =&gt; comparePages(page, afterPage) === 1;
&nbsp;
export const <span class="fstat-no" title="function not covered" >getMinPage = </span>(...args) =&gt; args.reduce((prev, curr) =&gt; {
<span class="cstat-no" title="statement not covered" >  if (!prev) r</span>eturn curr;
<span class="cstat-no" title="statement not covered" >  if (!curr) r</span>eturn prev;
<span class="cstat-no" title="statement not covered" >  return (</span>comparePages(prev, curr) === -1) ? prev : curr;
});
&nbsp;
export const <span class="fstat-no" title="function not covered" >getMaxPage = </span>(...args) =&gt; args.reduce((prev, curr) =&gt; {
<span class="cstat-no" title="statement not covered" >  if (!prev) r</span>eturn curr;
<span class="cstat-no" title="statement not covered" >  if (!curr) r</span>eturn prev;
<span class="cstat-no" title="statement not covered" >  return (</span>comparePages(prev, curr) === 1) ? prev : curr;
});
&nbsp;
export const <span class="fstat-no" title="function not covered" >getPrevPage = </span>(page) =&gt; {
<span class="cstat-no" title="statement not covered" >  if (!page) <span class="cstat-no" title="statement not covered" >r</span>eturn </span>undefined;
  const <span class="cstat-no" title="statement not covered" >prevComps = </span>getPrevMonthComps(page.month, page.year);
  return {
    month: prevComps.month,
    year: prevComps.year,
  };
};
&nbsp;
export const <span class="fstat-no" title="function not covered" >getNextPage = </span>(page) =&gt; {
<span class="cstat-no" title="statement not covered" >  if (!page) <span class="cstat-no" title="statement not covered" >r</span>eturn </span>undefined;
  const <span class="cstat-no" title="statement not covered" >nextComps = </span>getNextMonthComps(page.month, page.year);
  return {
    month: nextComps.month,
    year: nextComps.year,
  };
};
&nbsp;
// Return page if it lies between the from and to pages
export const getPageBetweenPages = (page, fromPage, toPage) =&gt; {
<span class="cstat-no" title="statement not covered" >  if (!page) <span class="cstat-no" title="statement not covered" >r</span>eturn </span>undefined;
<span class="cstat-no" title="statement not covered" >  if (<span class="cstat-no" title="statement not covered" >f</span>romPage &amp;&amp; </span>comparePages(page, fromPage) === -1) return undefined;
<span class="cstat-no" title="statement not covered" >  if (<span class="cstat-no" title="statement not covered" >t</span>oPage &amp;&amp; </span>comparePages(page, toPage) === 1) return undefined;
<span class="cstat-no" title="statement not covered" >  return page;</span>
};
&nbsp;
export const <span class="fstat-no" title="function not covered" >getFirstValidPage = </span>(...args) =&gt; args.find(p =&gt; !!p);
&nbsp;
export const <span class="fstat-no" title="function not covered" >getFirstArrayItem = </span>(array, fallbackValue) =&gt; {
<span class="cstat-no" title="statement not covered" >  if (!array) <span class="cstat-no" title="statement not covered" >r</span>eturn </span>fallbackValue;
<span class="cstat-no" title="statement not covered" >  return a</span>rray.length ? array[0] : fallbackValue;
};
&nbsp;
export const <span class="fstat-no" title="function not covered" >getLastArrayItem = </span>(array, fallbackValue) =&gt; {
<span class="cstat-no" title="statement not covered" >  if (!array) <span class="cstat-no" title="statement not covered" >r</span>eturn </span>fallbackValue;
<span class="cstat-no" title="statement not covered" >  return a</span>rray.length ? array[array.length - 1] : fallbackValue;
};
&nbsp;
export const <span class="fstat-no" title="function not covered" >arrayHasItems = </span>array =&gt; isArray(array) &amp;&amp; array.length;
&nbsp;
export const <span class="fstat-no" title="function not covered" >elementHasAncestor = </span>(el, ancestor) =&gt; {
<span class="cstat-no" title="statement not covered" >  if (!el) <span class="cstat-no" title="statement not covered" >r</span>eturn </span>false;
<span class="cstat-no" title="statement not covered" >  if (el === ancestor) <span class="cstat-no" title="statement not covered" >r</span>eturn </span>true;
<span class="cstat-no" title="statement not covered" >  return elementHasAncestor(el.parentElement, ancestor);</span>
};
&nbsp;
export const <span class="fstat-no" title="function not covered" >elementPositionInAncestor = </span>(el, ancestor) =&gt; {
  let <span class="cstat-no" title="statement not covered" >top = </span>0;
  let <span class="cstat-no" title="statement not covered" >left = </span>0;
<span class="cstat-no" title="statement not covered" >  do {</span>
<span class="cstat-no" title="statement not covered" >    top += e</span>l.offsetTop || 0;
<span class="cstat-no" title="statement not covered" >    left += e</span>l.offsetLeft || 0;
<span class="cstat-no" title="statement not covered" >    el = el.offsetParent;</span>
  } while (el &amp;&amp; el !== ancestor);
  return {
    top,
    left,
  };
};
&nbsp;
export const <span class="fstat-no" title="function not covered" ><span class="branch-0 cbranch-no" title="branch not covered" >objectFromArray = </span></span>(array, keyProp = 'key') =&gt; {
<span class="cstat-no" title="statement not covered" >  if (<span class="cstat-no" title="statement not covered" >!</span></span>array || !array.length) return {};
<span class="cstat-no" title="statement not covered" >  return array.reduce(<span class="fstat-no" title="function not covered" >(</span>obj, <span class="cstat-no" title="statement not covered" >curr) =&gt; <span class="cstat-no" title="statement not covered" >{</span></span> </span>obj[curr[keyProp]] = curr; return obj; }, {});
};
&nbsp;
export const mixinOptionalProps = (source, target, props) =&gt; {
  const assigned = [];
  props.forEach((p) =&gt; {
    const <span class="branch-1 cbranch-no" title="branch not covered" >name = </span>p.name || p.toString();
    const mixin = p.mixin;
    const validate = p.validate;
    <span class="missing-if-branch" title="if path not taken" >I</span>if (Object.prototype.hasOwnProperty.call(source, name)) {
      const <span class="cstat-no" title="statement not covered" >value = </span>validate ? validate(source[name]) : source[name];
<span class="cstat-no" title="statement not covered" >      target[name] = m</span>ixin ? { ...mixin, ...value } : value;
<span class="cstat-no" title="statement not covered" >      assigned.push(name);</span>
    }
  });
  return {
    target,
    assigned: <span class="branch-0 cbranch-no" title="branch not covered" >assigned.length ? </span>assigned : null,
  };
};
&nbsp;
export const isMobile = {
  andriod() {
<span class="cstat-no" title="statement not covered" >    return navigator.userAgent.match(/Android/i);</span>
  },
  blackberry() {
<span class="cstat-no" title="statement not covered" >    return navigator.userAgent.match(/BlackBerry/i);</span>
  },
  iOS() {
<span class="cstat-no" title="statement not covered" >    return navigator.userAgent.match(/iPhone|iPad|iPod/i);</span>
  },
  opera() {
<span class="cstat-no" title="statement not covered" >    return navigator.userAgent.match(/Opera Mini/i);</span>
  },
  windows() {
<span class="cstat-no" title="statement not covered" >    return navigator.userAgent.match(/IEMobile/i);</span>
  },
  any() {
<span class="cstat-no" title="statement not covered" >    return (i</span>sMobile.andriod() || isMobile.blackberry() || isMobile.iOS() || isMobile.opera() || isMobile.windows());
  },
};
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Fri Jan 05 2018 11:32:47 GMT-0600 (CST)
</div>
</div>
<script src="../prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="../sorter.js"></script>
</body>
</html>
